package top.huntwolf.admin.dao;

import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;
import top.huntwolf.admin.pojo.book.Book;
import top.huntwolf.admin.pojo.book.BuyBook;
import top.huntwolf.admin.pojo.book.SaleBook;

import java.util.List;

@Mapper
@Repository
public interface HotSaleDao {

    /*依据isbn查询*/
    Book selectBookByISBN(String isbn);

    /*查询全部*/
    List<Book> selectAll();

    /*增加一本*/
    int insert(Book book);

    /*更新一本*/
    int update(Book book);

    /*删除所有*/
    int delete();


}
